package com.sys.basics.config.socketio.nameSpaceListener;

import com.sys.basics.config.constant.SocketIoNameSpaceConstant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class NameSpaceEventListenerMgr {

    @Autowired
    WebEventListener webEventListener;

    public HashMap<String, InterfaceEventListener> getNameSpaceListener(){
        HashMap<String, InterfaceEventListener> listenerHashMap = new HashMap<>();

        listenerHashMap.put(SocketIoNameSpaceConstant.SocketIoNameSpace.WEB.getNameSpace(), webEventListener);

        return listenerHashMap;
    }

}
